export const stylePx = (style) => {
    const newStyle = {}
    for (let item in style) {
        switch (item) {
            case "top":
                newStyle[item] = style[item] + 'px'
                break;
            case "left":
                newStyle[item] = style[item] + 'px'
                break;
            case "width":
                newStyle[item] = style[item] + 'px'
                break;
            case "height":
                newStyle[item] = style[item] + 'px'
                break;
            default:
                newStyle[item] = style[item]
        }
        // console.log(newStyle)
    }
    return newStyle
}